package net.ddns.heroli.pojo;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Transient;
import org.beetl.sql.core.annotatoin.ColumnIgnore;
import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.UpdateIgnore;
//import org.beetl.sql.core.annotatoin.Table;
import javax.persistence.Table;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.com.gzheroli.bfw.pojo.base.TSUser;
/**   
 * @Title: Entity
 * @Description: 附件表
 * @author 李长荣
 * @date 2017-12-20 09:12:31
 * @version V1.0   
 *
 */
 @Table(name="t_b_attachment")
public class TBAttachment implements java.io.Serializable {

  @Column(name="ID")
  private java.lang.String id;//编号

  @Column(name="BUSINESS_KEY")
  private java.lang.String businessKey;//业务主键编号

  @Column(name="TABLE_NAME")
  private java.lang.String tableName;//业务表名

  @Column(name="REAL_PATH")
  private java.lang.String realPath;//实际路径

  @Column(name="EXT_NAME")
  private java.lang.String extName;//扩展名

  @Column(name="CREATE_DATE")
  private java.util.Date createDate;//创建时间

  @Column(name="USER_ID")
  private java.lang.String userId;//创建人编号

  @Column(name="ATTA_CONTENT")
  private byte[] attaContent;//附件内容

  @Column(name="REMARK")
  private java.lang.String remark;//备注

  @Column(name="TYPE")
  private java.lang.String type;//类别

  @Column(name="FILE_NAME")
  private java.lang.String fileName;//文件名称

  @Column(name="MAX_WIDTH")
  private java.lang.Integer maxWidth;//图片最大宽度

  @Column(name="TAG")
  private java.lang.String tag;//书签

  /**
	 *方法: 取得id
	 *return: id  编号
	 */
  public java.lang.String getId() {
      return this.id;
  }
  public void setId(java.lang.String id) {
      this.id = id;
  }

  /**
	 *方法: 取得businessKey
	 *return: businessKey  业务主键编号
	 */
  public java.lang.String getBusinessKey() {
      return this.businessKey;
  }
  public void setBusinessKey(java.lang.String businessKey) {
      this.businessKey = businessKey;
  }

  /**
	 *方法: 取得tableName
	 *return: tableName  业务表名
	 */
  public java.lang.String getTableName() {
      return this.tableName;
  }
  public void setTableName(java.lang.String tableName) {
      this.tableName = tableName;
  }

  /**
	 *方法: 取得realPath
	 *return: realPath  实际路径
	 */
  public java.lang.String getRealPath() {
      return this.realPath;
  }
  public void setRealPath(java.lang.String realPath) {
      this.realPath = realPath;
  }

  /**
	 *方法: 取得extName
	 *return: extName  扩展名
	 */
  public java.lang.String getExtName() {
      return this.extName;
  }
  public void setExtName(java.lang.String extName) {
      this.extName = extName;
  }

  /**
	 *方法: 取得createDate
	 *return: createDate  创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
  public java.util.Date getCreateDate() {
      return this.createDate;
  }
  public void setCreateDate(java.util.Date createDate) {
      this.createDate = createDate;
  }

  /**
	 *方法: 取得userId
	 *return: userId  创建人编号
	 */
  public java.lang.String getUserId() {
      return this.userId;
  }
  public void setUserId(java.lang.String userId) {
      this.userId = userId;
  }

  /**
	 *方法: 取得attaContent
	 *return: attaContent  附件内容
	 */
  public byte[] getAttaContent() {
      return this.attaContent;
  }
  public void setAttaContent(byte[] attaContent) {
      this.attaContent = attaContent;
  }

  /**
	 *方法: 取得remark
	 *return: remark  备注
	 */
  public java.lang.String getRemark() {
      return this.remark;
  }
  public void setRemark(java.lang.String remark) {
      this.remark = remark;
  }

  /**
	 *方法: 取得type
	 *return: type  类别
	 */
  public java.lang.String getType() {
      return this.type;
  }
  public void setType(java.lang.String type) {
      this.type = type;
  }

  /**
	 *方法: 取得fileName
	 *return: fileName  文件名称
	 */
  public java.lang.String getFileName() {
      return this.fileName;
  }
  public void setFileName(java.lang.String fileName) {
      this.fileName = fileName;
  }

  /**
	 *方法: 取得maxWidth
	 *return: maxWidth  图片最大宽度
	 */
  public java.lang.Integer getMaxWidth() {
      return this.maxWidth;
  }
  public void setMaxWidth(java.lang.Integer maxWidth) {
      this.maxWidth = maxWidth;
  }

  /**
	 *方法: 取得tag
	 *return: tag  书签
	 */
  public java.lang.String getTag() {
      return this.tag;
  }
  public void setTag(java.lang.String tag) {
      this.tag = tag;
  }

    public String toString(TBAttachment rm,TSUser user) {
	  return "";
  }
	
}